﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using BUS;
using DTO;

namespace QuanLyNhaSach.usercontrol
{
    public partial class TheLoai : UserControl
    {
        public TheLoai()
        {
            InitializeComponent();
        }

        private void TheLoai_Load(object sender, EventArgs e)
        {
            TheLoaiBUS bus = new TheLoaiBUS();
            List<TheLoaiDTO> dsTheLoai = bus.GetAll();
            dgvTheLoai.DataSource = dsTheLoai;
        }

        private void btnThem_Click(object sender, EventArgs e)
        {
            frmThemTheLoai frm = new frmThemTheLoai();
            frm.Show();
        }
    }
}
